<?php

namespace App\Models\Indent;
use Illuminate\Database\Eloquent\Model;


class OrderModel extends Model
{
    protected $table = "lsj_order";

	public $fillable = ['order_id','order_type','source_order_id','inquiry_sheet_id','uid','price','payways','status','pay_method','pay_time','remark'];

	public function inquirySheet()
    {
        return $this->belongsTo('App\Models\Inquiry\InquirySheet','inquiry_sheet_id');
    }

    public function orderShipAddress()
    {
        return $this->hasOne('App\Models\Indent\OrderShipAddress','order_id','order_id');
    }
}